﻿using System;

namespace IInject.Registration
{
	public class FromContextBuilder<TFrom> : DefaultContextBuilder, IContextBuilder<TFrom>
	{
		public FromContextBuilder(Container container) : base(typeof(TFrom), container)
		{
		}

		public IContextBuilder To<TTo>()
		{
			return To(typeof(TTo));
		}
	}
}
